import requests
import re
import json

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36'
}

url = 'https://fontawesome.com.cn/v4/icons'

resp = requests.post(url, headers=headers)
resp.encoding = 'utf-8'

lst = re.findall(r'<i class="fa fa-fw (.*?)" data-v-06292f57></i>', resp.text)


for item in lst:
    print("INSERT INTO `icon` (`id`, `name`, `remark`, `create_time`, `update_time`) "
          "VALUES (NULL, '" + item + "', NULL, now(), now());")

resp.close()